<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>



<script type="text/javascript">
	
	let i=0;
	
	while(i<10){
		i++;
		console.log(i);
	}
	
	
	var x="";
	let j=0;
	do{
		x=x + "该数字为 " + j;
		console.log(x);
		j++;
	}while (j<5)

	let arr = ['xiaoming','xiaohong','dabai'];
	arr.forEach(elem=>console.log(elem))
	
	console.log(arr[10]);
	
</script>
</body>
</html>
